// 安保信息
import request from "@/utils/request";
export default {
  // 获取安保信息
  securityList(page, size) {
    return request({
      url: "/security/list",
      method: "post",
      data: {
        page,
        size,
      },
    });
  },
  // 添加安保信息
  securityAdd(name, menus, auth_name) {
    return request({
      url: "/security/add",
      method: "post",
      data: {
        name,
        menus,
        auth_name,
      },
    });
  },
  // 更新安保
  updateSecurity(security) {
    return request({
      url: "/security/update",
      method: "post",
      data: security,
    });
  },
  // 删除安保信息
  securityDelete(row) {
    return request({
      url: "/security/delete",
      method: "delete",
      data: row,
    });
  },
};
